package com.itheima.demo05;

public class MainClass {
    public static void main(String[] args) {

        getInter(new Inter() {
            @Override
            public void show() {
                System.out.println("我想躺着吃西瓜");
            }
        });
    }

    public static void getInter(Inter inter){
        inter.show();
    }
}

interface Inter{
    void show();
}
